/**
 * 
 */
package org.jenkon.filter;

import java.lang.annotation.Annotation;

/**
 * @author Jens Konopka
 * 
 * @param <T>
 */
abstract class AbstractAnnotationFilter<T> implements Filter<T> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7028162598370792263L;

	private final Class<? extends Annotation> annotation;

	/**
	 * @param annotation {@link Class} of {@link Annotation}
	 */
	public AbstractAnnotationFilter(final Class<? extends Annotation> annotation) {
		this.annotation = annotation;
	}

	/**
	 * @return the annotation
	 */
	protected Class<? extends Annotation> getAnnotation() {
		return annotation;
	}

}
